package ${packageUri}.web.dao;

import ${packageUri}.web.entity.${className};
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName ${className}DAO
 * @Description ${tableDesc}
 * @Author duqc
 * @Date ${time}
 **/
@Repository
public interface ${className}Dao {

    /**
     * 通过id查询详情信息
     *
     * @param id 唯一ID
     * @return ${className}
     */
    ${className} getInfoById(@Param("id") String id);

    /**
     * 列表查询
     *
     * @return List<${className}>
     */
     List<${className}> list();

     /**
      * 删除
      *
      * @param ${className?uncap_first} info
      * @return Integer
      */
     Integer delete(${className} ${className?uncap_first});

     /**
     * 新增
     *
     * @param ${className?uncap_first} info
     * @return Integer
     */
     Integer insert(${className} ${className?uncap_first});

     /**
     * 修改
     *
     * @param ${className?uncap_first} info
     * @return Integer
     */
     Integer update(${className} ${className?uncap_first});
}
